package com.jt;

import com.jt.Dog;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class User11 {
    public static void main(String[] args) {
        System.out.println("我是用户，管理spring容器");
        String resource="spring.xml";
        ApplicationContext app =
                new ClassPathXmlApplicationContext( resource);
        Dog bean = app.getBean(Dog.class);
        bean.hello();
    }
}
